package cn.yuan.data.controller;

import cn.common.constant.EntrustConstant;
import com.yuan.common.redis.constant.CacheConstants;
import com.yuan.common.redis.service.RedisRepository;
import com.yuan.common.redis.service.RedisService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.boot.test.context.SpringBootTest;

import java.util.Set;

@SpringBootTest
public class TestEntrust {
    @Autowired
    private RedisRepository redisRepository;

    @Test
    public void Entrust() {
        //Set<String> set = redisRepository.zsetRangByScore(CacheConstants.ENTRUST_ORDER_MATCH_KEY+ EntrustConstant.Entrust_Type.SELL+CacheConstants.SPLIT+"ETH/USDT",0,12);
        redisRepository.zsetAdd("testAdd","aaa",10);
        redisRepository.zsetRemove("testAdd","aaa");
        System.out.println();
    }

}
